<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button v-show="index > 0" @click="index--">上一页</button>
        <div>
            <img v-bind:src="list[index]" alt="">
        </div>
        <button v-show="index < list.length - 1" v-on:click="index++">下一页</button>

    </div>
    <script src="./vue.js"></script>

    <script>
        const app = new  Vue({
            el: '#app',
            data: {
                index: 0,
                list: [
                    './images/11-00.gif',
                    './images/11-01.gif',
                    './images/11-02.gif',
                    './images/11-03.gif',
                    './images/11-04.png',
                    './images/11-05.png',
                ]
            }
        })
    </script>


</body>
</html>